﻿package kit4j.tests.jdk.awt;

import java.awt.Font;
import java.awt.font.TextAttribute;
import java.util.Map;

public class TestFont {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		showNumGlyphs();
		showAttributes();
	}
	
	public static void showNumGlyphs() {
		System.out.println(Font.decode("宋体").getNumGlyphs());
		System.out.println(Font.decode("楷体").getNumGlyphs());
		System.out.println(Font.decode("Dialog.bold").getNumGlyphs());
	}
	
	public static void showAttributes() {
		Font font = Font.decode("宋体");
		Map<TextAttribute, ?> atb = font.getAttributes();
		System.out.println(atb.keySet());
	}

}
